import { Outlet, NavLink, useNavigate } from "react-router-dom"
import { Button } from "antd"
const One = () => {
	const handle = () => {
		// navigate({
		// 	pathname: "/one/a",
		// 	search: "?name=yx&age=20"
		// })
		// navigate("/one/a", {
		// 	state: {
		// 		name: "yx",
		// 		age: 20
		// 	}
		// })
		navigate("/one/a/yx/18")
	}
	const navigate = useNavigate()
	return (
		<div>
			<Button onClick={handle}>点我跳转</Button>
			<br />
			<div>
				<Outlet />
			</div>
		</div>
	)
}

export default One